home *** CD-ROM | disk | FTP | other *** search
- From: David Byrden <100101.2547@compuserve.com>
- Message-ID: <4gief4$pv6@news.bridge.net>
- X-Original-Date: 22 Feb 1996 18:59:48 GMT
- Path: in2.uu.net!bounce-back
- Date: 22 Feb 96 20:22:36 GMT
- Approved: fjh@cs.mu.oz.au
- Return-Path: <daemon@meeker.UCAR.EDU>
- Newsgroups: comp.std.c++
- Subject: Templates; what does the standard mean here...
- Organization: self-employed
- X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
- X-Auth: PGPMoose V1.1 PGP comp.std.c++
- iQBFAgUBMSzQmOEDnX0m9pzZAQEuNAF/STZ8RvgT82q84uLj9ZMDteJlXuSsSEXa
- B/71O1OBD9rcJtBTu3Y9HtbUNdsF9tkY
- =IwB8
-
- From the January draft standard:
-
- 1 A template can be referred to by a template-id:
- template-id:
- template-name < template-argument-list >
- template-name:
- identifier
- template-argument-list:
- template-argument
- template-argument-list , template-argument
- template-argument:
- assignment-expression
- type-id
- template-name
-
-
- Notice the third-last line, "assignment-expression".
-
- Call me dumb, but I must ask what does this mean? What does the
- expression specify, a type or a value? Will an assignment be made at run
- time?
-
- Can you give me any examples of templates specialised with an
- assignment-expression?
-
-
- Thankyou.
-
- David
- ---
- [ To submit articles: try just posting with your news-reader.
- If that fails, use mailto:std-c++@ncar.ucar.edu
- FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html
- Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html
- Comments? mailto:std-c++-request@ncar.ucar.edu.
- ]
-